/*!******************************************************************************
 *     ___                  _   ____  ____
 *    / _ \ _   _  ___  ___| |_|  _ \| __ )
 *   | | | | | | |/ _ \/ __| __| | | |  _ \
 *   | |_| | |_| |  __/\__ \ |_| |_| | |_) |
 *    \__\_\\__,_|\___||___/\__|____/|____/
 *
 *  Copyright (c) 2014-2019 Appsicle
 *  Copyright (c) 2019-2022 QuestDB
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 ******************************************************************************/

#grid {
  height: 100%;
  width: 100%;
  flex-direction: column;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  overflow: hidden;
}

.qg-header-row {
  display: flex;
  overflow: hidden;
  height: 33px;

  .qg-header:last-child {
    margin-right: 10px;
  }
}

.qg-header-row,
.qg-r {
  white-space: nowrap;
}

.qg-r {
  display: flex;
  border-bottom: 1px solid #44475a;
  position: absolute;
  left: 0;
  right: 0;
}

.qg-r:hover {
  background-color: #44475a;
}

.qg-r:focus {
  outline: none;
}

.qg-r-active:hover {
  background-color: #6272a4;
  color: #f8f8f2;
}

.qg-r-active {
  background-color: #6272a4;
}

.qg-header {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  flex-direction: row;
  padding: 5px 3px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-bottom: 1px solid #191a21;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                   supported by Chrome, Opera and Firefox */
  background: #21222c;
}

.qg-header-name {
  font-weight: 700;
  color: #f1fa8c !important;
}

.qg-header-type {
  font-weight: 700;
  font-style: italic;
  margin: 0 7px;
  color: #6272a4;
  white-space: nowrap;
}

.qg-header-l {
  text-align: left;
  flex-direction: row-reverse;
  white-space: nowrap;
}

.qg-viewport {
  overflow: auto;
  height: calc(100% - 35px);
}

.qg-canvas {
  position: relative;
  width: 100%;
}

.qg-c {
  padding: 4px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.qg-c:hover {
  box-shadow: inset 0 0 0 2px #8d95a5;
  border-bottom: 1px solid transparent;
}

.qg-r-active .qg-c:hover {
  box-shadow: inset 0 0 0 2px #f8f8f2;
}

.qg-c-active {
  box-shadow: inset 0 0 0 2px #f8f8f2;
  border-bottom: 1px solid transparent;
}

.qg-r-active:hover .qg-c-active,
.qg-r-active:hover .qg-c-active:hover {
  box-shadow: inset 0 0 0 2px #ffb86c;
}

#debug {
  float: right;
  width: 300px;
  height: 300px;
  background: white;
  border: 1px solid red;
}
